﻿function name() {
    return new Promise((resolve) => {
        let args = null
        if (arguments.length > 0) {
            args = JSON.stringify(arguments)
        }
        cefQueryAsync({
            func: 'name', args: args,
            onSuccess: function (response) {
                if (response) {
                    resolve(JSON.parse(response))
                }
            }, onFailure: function (error) {
                console.error(error)
            }
        })
    })
}